// 商品中台模块

import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV)

export default {
  path: '/goodsMiddleStage',
  component: Layout,
  meta: { title: '商品中台', icon: 'icon', roles: [1, 2, 3, 4, 5, 6, 7, 8] },
  children: [
    {
      path: 'goodsManage',
      component: _import('goodsMiddleStage/goods/manage'),
      name: 'goodsMiddleStage-goods',
      meta: { title: '商品管理', icon: 'icon' }
    },
    {
      path: 'e3Goods',
      component: _import('goodsMiddleStage/e3Goods/list'),
      name: 'goodsMiddleStage-e3Goods',
      meta: { title: 'E3商品档案', icon: 'icon' }
    },
    {
      path: 'e3GoodsDetail',
      component: _import('goodsMiddleStage/e3Goods/detail'),
      name: 'goodsMiddleStage-e3GoodsDetail',
      hidden: true,
      meta: { title: 'E3商品详情', icon: 'icon' }
    },
    {
      path: 'goodsManageEdit',
      component: _import('goodsMiddleStage/goods/edit'),
      name: 'goodsMiddleStage-goodsEdit',
      hidden: true,
      meta: { title: '编辑商品', icon: 'icon' }
    },
    {
      path: 'brandManage',
      component: _import('goodsMiddleStage/brand/manage'),
      name: 'goodsMiddleStage-brand',
      meta: { title: '品牌管理', icon: 'icon' }
    },
    {
      path: 'brandAdd',
      component: _import('goodsMiddleStage/brand/edit'),
      name: 'goodsMiddleStage-brandAdd',
      hidden: true,
      meta: { title: '新建品牌', icon: 'icon' }
    },
    {
      path: 'brandEdit',
      component: _import('goodsMiddleStage/brand/edit'),
      name: 'goodsMiddleStage-brandEdit',
      hidden: true,
      meta: { title: '编辑品牌', icon: 'icon' }
    },
    {
      path: 'categoryManage',
      component: _import('goodsMiddleStage/category/manage'),
      name: 'goodsMiddleStage-category',
      meta: { title: '分类管理', icon: 'icon' }
    },
    {
      path: 'categoryEdit',
      component: _import('goodsMiddleStage/category/edit'),
      name: 'goodsMiddleStage-categoryEdit',
      hidden: true,
      meta: { title: '分类编辑', icon: 'icon' }
    },
    {
      path: 'categoryAdd',
      component: _import('goodsMiddleStage/category/edit'),
      name: 'goodsMiddleStage-categoryAdd',
      hidden: true,
      meta: { title: '新建分类', icon: 'icon' }
    },
    {
      path: 'property',
      component: _import('goodsMiddleStage/property/group/manage'),
      name: 'goodsMiddleStage-property',
      meta: { title: '属性组管理', icon: 'icon' }
    },
    {
      path: 'propertyEdit/:id/:name/:description',
      component: _import('goodsMiddleStage/property/group/edit'),
      name: 'goodsMiddleStage-propertyEdit',
      hidden: true,
      meta: { title: '属性组编辑', icon: 'icon' }
    },
    {
      path: 'propertyAdd',
      component: _import('goodsMiddleStage/property/group/edit'),
      name: 'goodsMiddleStage-propertyAdd',
      hidden: true,
      meta: { title: '属性组新增', icon: 'icon' }
    },
    {
      path: 'propertyDetail/:attrGroupId/:parentName',
      component: _import('goodsMiddleStage/property/detail/manage'),
      name: 'goodsMiddleStage-propertyDetail',
      hidden: true,
      meta: { title: '属性管理', icon: 'icon' }
    },
    {
      path: 'propertyDetail/:attrGroupId/:parentName/:id',
      component: _import('goodsMiddleStage/property/detail/edit'),
      name: 'goodsMiddleStage-propertyDetailEdit',
      hidden: true,
      meta: { title: '属性编辑', icon: 'icon' }
    },
    {
      path: 'propertyDetailAdd/:attrGroupId/:parentName',
      component: _import('goodsMiddleStage/property/detail/edit'),
      name: 'goodsMiddleStage-propertyDetailAdd',
      hidden: true,
      meta: { title: '属性新增', icon: 'icon' }
    },
    {
      path: 'tags',
      component: _import('goodsMiddleStage/tags/manage'),
      name: 'goodsMiddleStage-tags',
      meta: { title: '标签管理', icon: 'icon' }
    },
    {
      path: 'tagsAdd',
      component: _import('goodsMiddleStage/tags/edit'),
      name: 'goodsMiddleStage-tagsAdd',
      hidden: true,
      meta: { title: '新建标签', icon: 'icon' }
    },
    {
      path: 'tagsEdit',
      component: _import('goodsMiddleStage/tags/edit'),
      name: 'goodsMiddleStage-tagsEdit',
      hidden: true,
      meta: { title: '编辑标签', icon: 'icon' }
    },
    {
      path: 'goodBindTag',
      component: _import('goodsMiddleStage/tags/goodBindTag'),
      name: 'goodsMiddleStage-goodBindTag',
      hidden: true,
      meta: { title: '管理标签商品', icon: 'icon' }
    }
  ]
}
